Represents a shopping cart including virtual items.
Physical cart items are those the user has explicitly added
Virtual items are those the system has added based on additional rules.
This includes vouchers, after a user has entered a valid voucher code.
And also promotional items, such as 'free gift with purchase'
Virtual items cant be explicitly removed or have their quantity changed.
Properties
Name | Returns | Notes | Example |
---|---|---|---|
numItems | int | ||
cartId | long | ||
totalCost | BigDecimal | ||
totalTax | BigDecimal | ||
subTotal | BigDecimal | The total value of all cart items, excluding tax, but including credits from vouchers and promotional items | |
shippingProvider | ShippingProvider | ||
freightCost | BigDecimal | ||
items | List | ||
cart | Cart |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
containsCategory ( catCode ) | boolean | ||
containsProduct ( prodCode ) | boolean | ||
containsProductSku ( skuCode ) | boolean |
Hide comments
